package cn.rcth.controller;

import cn.rcth.MathRandom;
import cn.rcth.base.msg.ResultMsg;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author wu
 * @date 2019/8/9 0009下午 4:07
 */
@Controller
public class WanController {

    @RequestMapping
    @ResponseBody
    public ResultMsg zhaunPan(Integer num ){

        List<String> strings = MathRandom.chouJang(num);

        return ResultMsg.successResult(strings) ;
    }
}
